using System;
using System.Collections.Generic;
using System.Text;

namespace GraphAlgsPresentation.ScriptLibrary
{
    /// <summary>
    /// Provides a clear text command
    /// </summary>
    [Serializable]
    public class ClearText : Command
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ClearText"/> class.
        /// </summary>
        public ClearText()
        {
        }

        /// <summary>
        /// Runs this instance.
        /// </summary>
        public override void Run()
        {
            this.Context.CommentControl.Clear();
        }

        /// <summary>
        /// Undoes this instance.
        /// </summary>
        public override void Undo()
        {
            //throw new Exception("The method or operation is not implemented.");
        }
    }
}
